/**
 * Resource Loading Module
 * 资源加载模块 - 统一导出
 * 
 * @module ResLoad
 * @description 基于 Cocos Creator 3.8 的资源加载和管理解决方案
 * @version 1.0.0
 */

// 资源加载器
export { ResLoader, resLoader } from './resload';
export type {
    AssetType,
    Paths,
    ProgressCallback,
    CompleteCallback,
    IRemoteOptions,
} from './resload';

// 资源包管理器
export {
    BundleManager,
    bundleManager,
    BundleState,
} from './bundleManager';
export type {
    IBundleConfig,
    IBundleInfo,
    BundleProgressCallback,
    BundleCompleteCallback,
} from './bundleManager';

// 资源包节点池集成
export {
    BundlePoolIntegration,
    bundlePool,
} from './bundlePoolIntegration';
export type {
    IBundlePoolConfig,
} from './bundlePoolIntegration';

// 示例代码
export {
    BundleManagerExample,
    BundlePoolExample,
    GameStarterExample,
} from './BundleManagerExample';

/**
 * 快速使用示例：
 * 
 * ```typescript
 * import { bundleManager, bundlePool } from '@/core/resload';
 * 
 * // 注册并加载资源包
 * bundleManager.registerBundle({
 *     name: 'game',
 *     version: '1.0.0',
 *     priority: 10,
 * });
 * const bundle = await bundleManager.loadBundle('game');
 * 
 * // 创建资源包节点池
 * await bundlePool.createPool('enemy', {
 *     bundleName: 'game',
 *     prefabPath: 'prefabs/enemy',
 *     preloadCount: 10,
 *     maxCount: 50,
 * });
 * ```
 */

